package com.zeei.gis.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zeei.common.annotation.SysLog;
import com.zeei.common.controller.BasicController;
import com.zeei.common.enums.LogType;
import com.zeei.common.vo.ResultRowsVO;
import com.zeei.gis.service.TechnicsGisService;
import com.zeei.gis.vo.TechnicsGisVO;

/**
 * @类型名称：TechnicsGisController
 * @类型描述：生产工艺信息管理
 * @功能描述：生产工艺信息管理
 * @创建人：jiangqingpeng
 */
@Controller
@RequestMapping("/gis/technics")
public class TechnicsGisController extends BasicController{

	@Autowired
	TechnicsGisService technicsGisService;
	
	@RequestMapping(value="/list", method=RequestMethod.POST)
	@ResponseBody
	@SysLog(text="查询工艺信息", type=LogType.View)
	public ResultRowsVO<TechnicsGisVO> queryTechnicsList(){
		List<TechnicsGisVO> listTechnics = technicsGisService.queryTechnicsList();
		return this.createResultRowsVO(listTechnics, true, "", listTechnics.size());
		
	}
}
